A common use of PROC MEANS is to produce statistics for each by group and write those results to an output dataset so that they can be analyzed further. This video considers an example of this sort involving respiratory function data from firefighters.
This example is probably more easily understood from this video than simply by reading through it yourself, so I strongly encourage you to watch this clip.